<form method="post" action="" class="pageForm required-validate">
<div class="pageContent">
    <div class="pageFormContent">
            <fieldset>
            <dl>
                    <dt style="width: 120px;"><@label key='requirementNum.C,colon'>需求编号：</@label></dt>
                    <dd>
                        <input name="requirementNum" size="22" type="text" maxlength="60"  class="required toUp" readonly="readonly"
                        value="${requirement.requirementNum!''}" />
                    </dd>
                </dl>
               
               <dl>
                    <dt style="width: 120px;"><@label key='materialCode.C,colon'>物料编号：</@label></dt>
                    <dd>
                        <input name="materialCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.materialCode!''}" />
                    </dd>
                </dl>
                <dl>
                    <dt style="width: 120px;"><@label key='productionOrderNum.C,colon'>生产订单编号：</@label></dt>
                    <dd>
                        <input name="productionOrderNum" size="22" type="text" maxlength="20" 
                        class="required  alphanumeric toUp"    
                            value="${requirement.productionOrderNum!''}"   
                        readonly="readonly"/>
                    </dd>
                </dl>
                <dl>
                    <dt style="width: 120px;"><@label key='productionControlNum.C,colon'>生产管理号：</@label></dt>
                    <dd>
                        <input name="productionControlNum" size="22" type="text" maxlength="60" class="required" 
                        value="${requirement.productionControlNum!''}" readonly="readonly"/>
                    </dd>
                </dl>
                    <dl>          
                    <dt style="width: 120px;"><@label key='workCenterCode.C,colon'>工作中心编号：</@label></dt>
                    <dd>
                        <input name="workcenterCode" size="22" type="text" maxlength="60"  
                        value="${requirement.workcenterCode!''}" readonly="readonly"/>
                    </dd>                   
                </dl>
                
                <dl>
                    <dt style="width: 120px;"><@label key='workUnitCode.C,colon'>作业单元编号：</@label></dt>
                    <dd>
                        <input name="workunitCode" size="22" type="text" maxlength="60" 
                        value="${requirement.workunitCode!''}"  readonly="readonly"  />
                    </dd>
                </dl>
                    <dl>
                    <dt style="width: 120px;"><@label key='WarehouseCode.C,colon'>仓库编号：</@label></dt>
                    <dd>
                        <input name="warehouseCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.warehouseCode!''}" />
                    </dd>
                </dl>               
                <dl>
                    <dt style="width: 120px;"><@label key='storageLocationCode.C,colon'>库位编号：</@label></dt>
                    <dd>
                        <input name="storageLocationCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.storageLocationCode!''}" />
                    </dd>
                </dl> 
                
                   <dl>
                    <dt style="width: 120px;"><@label key='expectedArrivalDateTime.C,colon'>期望到货时间：</@label></dt>
                    <dd>
                        <input name="expectedArrivalDateTime" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${(requirement.expectedArrivalDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" />
                    </dd>
                </dl>                             
    
                     <dl>
                    <dt style="width: 120px;"><@label key='processOperationId.C,colon'>工艺工序ID：</@label></dt>
                    <dd>
                        <input name="processOperationId" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.processOperationId!''}" />
                    </dd>
                </dl> 
                     <dl>
                    <dt style="width: 120px;"><@label key='distributionModeCode.C,colon'>配送方式编号：</@label></dt>
                    <dd>
                        <input name="distributionModeCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.distributionModeCode!''}" />
                    </dd>
                </dl>
                     <dl>
                    <dt style="width: 120px;"><@label key='distributionUser.C,colon'>配送人：</@label></dt>
                    <dd>
                        <input name="distributionUser" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.distributionUser!''}" />
                    </dd>
                </dl>
                     <dl>
                    <dt style="width: 120px;"><@label key='pullStrategyCode.C,colon'>拉动策略编号：</@label></dt>
                    <dd>
                        <input name="pullStrategyCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.pullStrategyCode!''}" />
                    </dd>
                </dl>
                               <dl>
                    <dt style="width: 120px;"><@label key='requirementTriggerModeCode.C,colon'>物料需求触发策略编号：</@label></dt>
                    <dd>
                        <input name="requirementTriggerModeCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.requirementTriggerModeCode!''}" />
                    </dd>
                </dl>
                               <dl>
                    <dt style="width: 120px;"><@label key='distributionTriggerModeCode.C,colon'>配送触发策略编号：</@label></dt>
                    <dd>
                        <input name="distributionTriggerModeCode" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.distributionTriggerModeCode!''}" />
                    </dd>
                </dl>
                     <dl>
                    <dt style="width: 120px;"><@label key='RequirementStatusECode.C,colon'>物料需求状态：</@label></dt>
                    <dd>
                        <select name="statusECode" disabled="disabled">
                    
                         <#if StatusECode??>
                        <#list StatusECode as ecode>
                            <option value="${ecode.eCode!''}" <#if requirement.statusECode?? && requirement.statusECode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option>
                        </#list>
                     </#if>
                        </select>
                     
                    </dd>
                </dl>                
                <dl>
                    <dt style="width: 120px;"><@label key='createDateTime.C,colon'>创建日期：</@label></dt>
                    <dd>
                        <input name="createDateTime" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${(requirement.createDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" />
                    </dd>
                </dl> 
                <dl>
                    <dt style="width: 120px;"><@label key='closeDateTime.C,colon'>需求关闭时间：</@label></dt>
                    <dd>
                        <input name="closeDateTime" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${(requirement.closeDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" />
                    </dd>
                </dl> 
                 <dl>
                    <dt style="width: 120px;"><@label key='createUser.C,colon'>创建人：</@label></dt>
                    <dd>
                        <input name="createUser" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.createUser!''}" />
                    </dd>
                </dl> 
                <dl>
                    <dt style="width: 120px;"><@label key='closeUser.C,colon'>关闭人：</@label></dt>
                    <dd>
                        <input name="closeUser" size="22" type="text" maxlength="60"  readonly="readonly"
                        value="${requirement.closeUser!''}" />
                    </dd>
                </dl> 
                  <dl>
                  <dt></dt>
                  <dd>
                        <label style="width: 80px;"><input disabled="disabled" type="checkbox" name="distributionTimeoutFlag" value="1"
                        <#if (requirement.distributionTimeoutFlag)?? && (requirement.distributionTimeoutFlag == 1)>checked="true"</#if>>
                        <@label key="distributionTimeoutFlag.C">配送超时</@label></label>
                    </dd>
                </dl>
                <dl>
                   <dt style="width: 120px;"><@label key='Distribution.C,colon'>配送需求：</@label></dt>
                </dl> 
                 </fieldset>  
             
           <div class="tabsContent" style="height:180px">
            <table class="table border" width="100%" layoutH="360%">
            <thead>
                <tr>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="80"><@label key="distributionCode.C">配送编号</@label></th>
                <th width="100"><@label key='materialCode.C'>物料编号</@label></th>
                <th width="100"><@label key='materialText.C'>物料名称</@label></th>
                <th width="100"><@label key='materialspec.C'>物料规格</@label></th>
                <th width="100"><@label key='requirementQuantity.C'>需求数量</@label></th>
                <th width="100"><@label key='actualQuantity.C'>实发数量</@label></th>
                 <th width="120"> <@label key='createDateTime.C'>创建时间</@label></th>
                 </tr>
                 </thead>
                 <tbody>
                 <#if details??><#if (details?size>0)> <#list details as requirement>
                 <tr>
                    <td>${requirement_index + 1}</td>
                    <td>${requirement.distributionNum!''}</td>
                    <td>${requirement.materialCode!''}</td>
                    <td>${requirement.materialText!''}</td>
                    <td>${requirement.materialSpec!''}</td>
                    <td>${requirement.distributionQuantity!''}</td>
                    <td>${requirement.actualQuantity!''}</td>
                    <td>${(requirement.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                    </tr>
                    </#list>
               </#if>
               <#else>
              <tr>
                    <td colspan="11" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
              </tr>
              </#if>
                 </tbody>
                 </table>
                                                                                    
            </div>
           <div class="tabsFooter">
                <div class="tabsFooterContent"></div>
        </div>     
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close" onclick="beforeClose();"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
